<?php /* Smarty version 2.6.16, created on 2013-09-11 14:08:24
         compiled from d:%5Cwww%5Cclient%5Cgetbids/templates/default//modules/leads/buylead.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'd:\\www\\client\\getbids/templates/default//modules/leads/buylead.tpl', 55, false),array('modifier', 'upper', 'd:\\www\\client\\getbids/templates/default//modules/leads/buylead.tpl', 85, false),array('modifier', 'date_format', 'd:\\www\\client\\getbids/templates/default//modules/leads/buylead.tpl', 100, false),array('modifier', 'base64_encode', 'd:\\www\\client\\getbids/templates/default//modules/leads/buylead.tpl', 112, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/registration.css"><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/interest.js"></script><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/greybox/greybox.js"></script><link href="';  echo $this->_tpl_vars['siteroot'];  echo '/greybox/greybox.css" rel="stylesheet" type="text/css" media="all" />'; ?>

<?php echo '
<script type="text/javascript">
function paymentfunction(planid)
{
	
	document.getElementById("plan_id").value=planid;		
	
}
function testfunction(defval)
{
	var conf = confirm(\'Are you sure do you want to buy this lead?\');
	//default_videoalert(defval);
	if(conf == true){
		var GB_ANIMATION = true;
		var url=SITEROOT+\'/leads/\'+defval+\'/interest/\';
        //var t = this.title || jQuery(this).text() || this.href;
        GB_show("",url,500,500);
         return false;
    
		//window.location=SITEROOT+\'/leads/\'+defval+\'/interest/\';
	}
}
</script>
'; ?>

<!--Gray box-->
<?php echo '
<script type="text/javascript">
	var GB_ANIMATION = true;
    jQuery(document).ready(function(){
    	jQuery("a.greybox").click(function(){
        var t = this.title || jQuery(this).text() || this.href;
        GB_show("",this.href,400,400);
         return false;
       });
     });
</script>
'; ?>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
   <!-- MIDDLE CONTAIN GOES HERE -->
<section class="middle_portion">
	<section class="inner_head"><span class="lF" style="color:#454545" >Lead Detail</span> <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/leads/" class="rF">BACK</a> <section class="clear"></section></section>
    <section class="inner_containstart">
    <section class="buyerinfo">
    <!--
       <dl>
        <dt>Full Name :</dt>
        <dd><?php echo ((is_array($_tmp=$this->_tpl_vars['jobdetArray']['username'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</dd>
        <section class="clear"></section>
      </dl>
      -->
      <dl>
        <dt>Industry Category:</dt>
        <dd><?php echo $this->_tpl_vars['jobdetArray']['tradename']; ?>
</dd>
        <section class="clear"></section>
       </dl>
       
       <dl>
        <dt>Enquiry Type:</dt>
        <dd><?php echo $this->_tpl_vars['jobdetArray']['jobtypename']; ?>
</dd>
        <section class="clear"></section>
       </dl>
       
       <dl>
        <dt>Budget:</dt>
        <dd>Under $<?php echo $this->_tpl_vars['jobdetArray']['budgetname']; ?>
</dd>
        <section class="clear"></section>
       </dl>
       
        <dl>
        <dt>Postcode:</dt>
        <dd><?php echo $this->_tpl_vars['userDetArray']['postalcode']; ?>
</dd>
        <section class="clear"></section>
       </dl>
       
        <dl>
        <dt>Work Start In:</dt>
        <dd><?php echo ((is_array($_tmp=$this->_tpl_vars['jobdetArray']['workstart'])) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp)); ?>
</dd>
        <section class="clear"></section>
       </dl>
       
       <dl>
        <dt>Lead Price:</dt>
        <dd>$<?php echo $this->_tpl_vars['getleadprice']['price']; ?>
</dd>
        <section class="clear"></section>
       </dl>
        
	<dl>
        <dt>Job Description:</dt>
        <dd><?php echo $this->_tpl_vars['jobdetArray']['job_desc']; ?>
</dd>
        <section class="clear"></section>
       </dl>
     <?php if (( $this->_tpl_vars['userDetArray']['leads'] != '0' && $this->_tpl_vars['userDetArray']['expiry_date'] > ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")) ) || $this->_tpl_vars['getuserjobviewArr']['id'] != ''): ?>  
	    <?php if ($this->_tpl_vars['getuserjobviewArr']['id'] == ''): ?>
        <dl>
        <dt>&nbsp;</dt>
        <dd>If you are interested then please click on below button.</dd>
        <section class="clear"></section>
       </dl>
       <?php endif; ?>
       
        <dl>
        <dt>&nbsp;</dt>
        <dd>
             <input type="button" <?php if ($this->_tpl_vars['getuserjobviewArr']['id'] == ''): ?> onclick="window.location.href='<?php echo $this->_tpl_vars['siteroot']; ?>
/leads/<?php echo $_GET['id1']; ?>
/<?php echo ((is_array($_tmp='open')) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/buylead/'" value="Interest" <?php else: ?> value="Purchase" <?php endif; ?> name="btn_interest" id="btn_interest"  class="blue_btn margintp_bt " > 
            <!--<a href="javascript:;" <?php if ($this->_tpl_vars['getuserjobviewArr']['id'] == ''): ?> onclick="return testfunction('<?php echo $_GET['id1']; ?>
');" class="blue_btn margintp_bt" <?php else: ?> class="blue_btn margintp_bt" <?php endif; ?>  > <?php if ($this->_tpl_vars['getuserjobviewArr']['id'] == ''): ?>Interest<?php else: ?>Purchase<?php endif; ?> </a>-->
            
        </dd>
        <section class="clear"></section>
       </dl>
     <?php else: ?>
     
     	<dl>
        <dt></dt>
        <?php if ($this->_tpl_vars['userDetArray']['leads'] == '0'): ?>
	        <div style="padding:0px;"><div class="error_msg" style="padding:0px;"> <span>Sorry you have not left leads. Please choose one option for upgradation.</span></div></div>
        <?php else: ?>
            <div style="padding:0px;"><div class="error_msg" style="padding:0px;"> <span>Sorry your plan has been expired. Please choose one option for upgradation.</span></div></div>
        <?php endif; ?>	    
        <section class="clear"></section>
     	</dl>
        
        
        
        <section style="width:830px;" class="rF">
        <span style="text-transform:uppercase; font-size:18px; padding-right:7px;">Pay Lead Price $<?php echo $this->_tpl_vars['getleadprice']['price']; ?>
</span>
        <input type="button" onclick="window.location.href='<?php echo $this->_tpl_vars['siteroot']; ?>
/leads/<?php echo $_GET['id1']; ?>
/payamount/'" name="btnstep4" id="btnstep4" value="Buy Lead" class="blue_btn margintp_bt" > 
        
        </section>
        
     	<section style="margin:15px 0px;"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/or_divider.png" /></section>
        
         <dl>
        <dt></dt>
        <dd style="margin-left:125px; margin-top:10px;"><strong>Membership Plan Renewal</strong></dd>
        <section class="clear"></section>
     	</dl>        
        <dl>
        <form id="frmplantype" name="frmplantype" method="POST" action="<?php echo $this->_tpl_vars['siteroot']; ?>
/leads/payamount/"> 
        <section>            
        <section style="margin:20px 0px 20px 130px;">
        
        <?php if ($this->_tpl_vars['getuserdet']['plannid'] == '1'): ?>
        <section class="price_wrapper lF">    
            <section class="blu_price_block">
                <section class="tiltle">            
                <input type="radio" class="radio" name="membershipplan" value="<?php echo $this->_tpl_vars['getplandetail'][0]['price']; ?>
" <?php if ($this->_tpl_vars['getuserdet']['plannid'] == '1'): ?> checked="checked" <?php endif; ?> onclick="return paymentfunction(<?php echo $this->_tpl_vars['getplandetail'][0]['plan_id']; ?>
);" /><?php echo ((is_array($_tmp=$this->_tpl_vars['getplandetail'][0]['name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</section>            
                <section class="price"><strong>$<?php echo $this->_tpl_vars['getplandetail'][0]['price']; ?>
</strong></section>
                <section class="lead"><?php echo ((is_array($_tmp=$this->_tpl_vars['getplandetail'][0]['leads'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
 LEADS</section>
            </section>
            <section class="clear"></section>
        </section> 
        <?php endif; ?>
        <?php if ($this->_tpl_vars['getuserdet']['plannid'] == '1' || $this->_tpl_vars['getuserdet']['plannid'] == '2'): ?>
        <section class="price_wrapper lF">    
            <section class="org_price_block">
                <section class="tiltle">            
                <input type="radio" class="radio" name="membershipplan" value="<?php echo $this->_tpl_vars['getplandetail'][1]['price']; ?>
" <?php if ($this->_tpl_vars['getuserdet']['plannid'] == '2'): ?> checked="checked" <?php endif; ?> onclick="return paymentfunction(<?php echo $this->_tpl_vars['getplandetail'][1]['plan_id']; ?>
);" /><?php echo ((is_array($_tmp=$this->_tpl_vars['getplandetail'][1]['name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</section>            
                <section class="price"><strong>$<?php echo $this->_tpl_vars['getplandetail'][1]['price']; ?>
</strong></section>
                <section class="lead"><?php echo ((is_array($_tmp=$this->_tpl_vars['getplandetail'][1]['leads'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
 LEADS</section>
            </section>
            <section class="clear"></section>
        </section> 
        <?php endif; ?>
        <?php if ($this->_tpl_vars['getuserdet']['plannid'] == '1' || $this->_tpl_vars['getuserdet']['plannid'] == '2' || $this->_tpl_vars['getuserdet']['plannid'] == '3' || $this->_tpl_vars['getuserdet']['plannid'] == '4'): ?>
        <section class="price_wrapper lF">    
            <section class="gry_price_block">
                <section class="tiltle">            
                <input type="radio" class="radio" name="membershipplan" value="<?php echo $this->_tpl_vars['getplandetail'][2]['price']; ?>
" <?php if ($this->_tpl_vars['getuserdet']['plannid'] == '3' || $this->_tpl_vars['getuserdet']['plannid'] == '4'): ?> checked="checked" <?php endif; ?> onclick="return paymentfunction(<?php echo $this->_tpl_vars['getplandetail'][2]['plan_id']; ?>
);" /><?php echo ((is_array($_tmp=$this->_tpl_vars['getplandetail'][2]['name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</section>            
                <section class="price"><strong>$<?php echo $this->_tpl_vars['getplandetail'][2]['price']; ?>
</strong></section>
                <section class="lead"><?php echo ((is_array($_tmp=$this->_tpl_vars['getplandetail'][2]['leads'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
 LEADS</section>
            </section>
            <section class="clear"></section>
        </section> 
        <?php endif; ?>
        <?php if ($this->_tpl_vars['getuserdet']['plannid'] == '1'): ?>
        <input type="hidden" name="plan_id" id="plan_id" value="<?php echo $this->_tpl_vars['getplandetail'][0]['plan_id']; ?>
"  /> 
        <?php elseif ($this->_tpl_vars['getuserdet']['plannid'] == '2'): ?>
        <input type="hidden" name="plan_id" id="plan_id" value="<?php echo $this->_tpl_vars['getplandetail'][1]['plan_id']; ?>
"  /> 
        <?php elseif ($this->_tpl_vars['getuserdet']['plannid'] == '3'): ?>
        <input type="hidden" name="plan_id" id="plan_id" value="<?php echo $this->_tpl_vars['getplandetail'][2]['plan_id']; ?>
"  /> 
        <?php elseif ($this->_tpl_vars['getuserdet']['plannid'] == '4'): ?>
        <input type="hidden" name="plan_id" id="plan_id" value="<?php echo $this->_tpl_vars['getplandetail'][2]['plan_id']; ?>
"  /> 
        <?php endif; ?>
        <input type="hidden" name="jobid" id="jobid" value="<?php echo $_GET['id1']; ?>
"  />  
        <section class="clear"></section>
        </section>
          <section style="width:255px;" class="rF"><input type="submit" name="btnplan" id="btnplan" value="Continue" class="blue_btn" ></section> 	     <section class="clear"></section>  
        </section>
        <section class="clear"></section>
        </form>
     	</dl>        
       
        
        <section class="clear"></section>	
     <?php endif; ?>  
       
    </section>      

    </section>
</section>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>